﻿using FSM.IDal;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace FSM.Dal
{
    public class DLRegister
    {
        public static void Regist(IServiceCollection service)
        {
            service.AddTransient<ISysUserDal, SysUserDal>();
            service.AddTransient<ISysRoleDal, SysRoleDal>();
            service.AddTransient<ISysMenuDal, SysMenuDal>();
            service.AddTransient<ISysActionDal, SysActionDal>();
            service.AddTransient<ISysIconDal, SysIconDal>();
            service.AddTransient<ITablesDal, TablesDal>();
            service.AddTransient<IRelMenuActionDal, RelMenuActionDal>();
            service.AddTransient<IRelRoleMenuDal, RelRoleMenuDal>();
            service.AddTransient<IRelRoleMenuActionDal, RelRoleMenuActionDal>();
            service.AddTransient<IRelUserRoleDal, RelUserRoleDal>();
            service.AddTransient<ISysSettingDal, SysSettingDal>();
            service.AddTransient<ISysParamDal, SysParamDal>();
            service.AddTransient<ISysParamSubDal, SysParamSubDal>();
            service.AddTransient<ISysCodeDal, SysCodeDal>();
            service.AddTransient<ISysCodeSerialDal, SysCodeSerialDal>();
            service.AddTransient<ILogEventDal, LogEventDal>();
            service.AddTransient<ILogLoginDal, LogLoginDal>();
            service.AddTransient<ITbCompanyDal, TbCompanyDal>();
            service.AddTransient<ITbFileDal, TbFileDal>();
            service.AddTransient<ITbFilePredeleteDal, TbFilePredeleteDal>();
            service.AddTransient<ITbFileLogDal, TbFileLogDal>();
            service.AddTransient<ITbFileRestoreDal, TbFileRestoreDal>();
        }
    }
}
